package com.glory.brepda.adapter;

import android.graphics.Color;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.brepda.R;
import com.glory.brepda.entity.EdcEntity;
import com.glory.brepda.entity.WaferHP;

import java.util.List;

public class WaferLotHpAdapter extends BaseQuickAdapter<WaferHP, BaseViewHolder> {

    public WaferLotHpAdapter( @Nullable List<WaferHP> data) {
        super(R.layout.wafer_hp, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, WaferHP item) {
        helper.setText(R.id.lotId,item.getEtWaferLot()+"/\n"+item.getEtEqp())
                .setText(R.id.error,"划偏："+item.getEthp()+" "+"擦花："+item.getEtch()+"\n"+"磨损："+item.getEtms()+" "+"裂硅："+item.getEtlg()+"\n"+"其他："+item.getEtqt())
                .setText(R.id.result,item.getEtJl());

//        if (item.getSUBQTY() == 1){
//            helper.setBackgroundColor(R.id.llItemLayout, Color.rgb(135,153,163));
//        }else {
//            helper.setBackgroundColor(R.id.llItemLayout,Color.WHITE);
//        }
    }
}
